(C) 1996 AROS - The Amiga Replacement OS


NAME
#include <graphics/rastport.h>
#include <intuition/intuition.h>
#include <proto/intuition.h>
void DrawBorder()
SYNOPSIS
struct RastPort * rp
struct Border * border
LONG leftOffset
LONG topOffset

LOCATION
In IntuitionBase at offset 18
FUNCTION
Draws one or more borders in the specified RastPort. Rendering will start at the position which you get when you add the offsets leftOffset and topOffset to the LeftEdge and TopEdge specified in the Border structure. All coordinates are relative to that point.

INPUTS
rp
The RastPort to render into
border
Information what and how to render
leftOffset, topOffset
Initial starting position
RESULT
None.

NOTES
EXAMPLE
// Draw a house with one stroke
// The drawing starts at the lower left edge
WORD XY[] =
{
    10, -10,
    10,   0,
     0, -10,
    10, -10,
     5, -15,
     0, -10,
     0,   0,
    10,   0,
};
struct Border demo =
{
    100, 100,	// Position
    1, 2,	// Pens
    JAM1,	// Drawmode
    8,		// Number of pairs in XY
    XY, 	// Vector offsets
    NULL	// No next border
};

// Render the house with the bottom left edge at 150, 50
DrawBorder (rp, &demo, 50, -50);

BUGS
SEE ALSO
INTERNALS
HISTORY
27.01.1997 ldp
Polish
10.12.1996 aros
Moved #include into first column to allow makedepend to see it.
08.11.1996 aros
All OS function use now Amiga types

Moved intuition-driver protos to intuition_intern.h

24.10.1996 aros
Use the official AROS macros over the __AROS versions.
02.10.1996 digulla
Fixed a bug (coordinates are relative to offset and not to last point)
29.08.1996 digulla
Moved common code from driver to Intuition More docs
23.08.1996 digulla
Several new functions; some still empty.